<!DOCTYPE html>
<html>
<head>
    <title>平台商品</title>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form">
    <blockquote class="layui-elem-quote quoteBox">
        <form class="layui-form">

            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="text" name="proName"
                           class="layui-input" placeholder="商品名称"/>
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="shopName" class="layui-input" placeholder="店铺名称"/>
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="proId" class="layui-input" placeholder="商品编号"/>
                </div>


                <div class="layui-input-inline">
                    <select name="auditState" id="auditState">
                        <option value="">审核状态</option>
                        <option value="1">通过</option>
                        <option value="0">拒绝</option>
                        <option value="2">待审核</option>
                    </select>
                </div>

                <div class="layui-input-inline">
                    <select name="proState" id="proState">
                        <option value="">商品状态</option>
                        <option value="1">上架</option>
                        <option value="0">下架</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <a class="layui-btn search_btn" data-type="reload"><i
                                class="layui-icon">&#xe615;</i> 搜索</a>
                </div>
            </div>

        </form>
    </blockquote>

    <#-- 在页面放置一个元素 <table id="demo"></table>，然后通过 table.render() 方法指定该容器 -->
    <table id="productList" class="layui-table" lay-filter="products"></table>

    <#-- 头部工具栏 -->
    <script type="text/html" id="toolbarDemo">
        <div class="layui-btn-container">
            <#--            <a class="layui-btn layui-btn-normal addNews_btn" lay-event="add">-->
            <#--                <i class="layui-icon">&#xe608;</i>-->
            <#--                添加-->
            <#--            </a>-->
            <a class="layui-btn layui-btn-normal delNews_btn" lay-event="del">
                <i class="layui-icon">&#xe608;</i>
                下架商品
            </a>
        </div>
    </script>


    <!-- 行工具栏 -->
    <script id="productListBar" type="text/html">
        <a class="layui-btn layui-btn-xs" id="edit" lay-event="edit">下架</a>
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="que">查看</a>
    </script>

</form>
<script type="text/javascript" src="${ctx}/js/product/product.js"></script>

</body>
</html>